/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package system;

import org.jdesktop.swingx.JXErrorPane;
import org.jdesktop.swingx.error.ErrorInfo;

/**
 *
 * @author Ícaro
 */
public class DialogException {
    
    public DialogException(ErrorInfo info, int tipoErro) {

        if (tipoErro == 1) {
            JXErrorPane.showDialog(null, info);
        }
    }
}
